package org.gordonframework.site.views {
	import org.gordonframework.core.process.GProcess;

	import flash.display.Sprite;	

	/**
	 * @author sampet
	 */
	public class GView extends Sprite {

		public function GView() {
		}

		/**
		 * The right position of the view. 
		 */
		public function get right():Number {
			return x + width;
		}

		/**
		 * @private
		 */
		public function set right(value:Number):void {
			x = value - width;
		}

		/**
		 * The bottom position of the view. 
		 */
		public function get bottom():Number {
			return y + height;
		}

		/**
		 * @private
		 */	 
		public function set bottom(value:Number):void {
			y = value - height;
		}

		/**
		 * @param durationMultiplier A decimal value that is multiplied with the intro duration.
		 * @return The duration of the intro in seconds.
		 */
		public function intro(durationMultiplier:Number = 1):Number {
			return 0;
		}

		/**
		 * @param durationMultiplier A decimal value that is multiplied with the outro duration.
		 * @return The duration of the intro in seconds.
		 */
		public function outro(durationMultiplier:Number = 1):Number {
			return 0;
		}

		/**
		 * @return A GProcess object, which you can use to initialize the view.
		 */
		public function getInitProcess():GProcess {
			return null;
		}
	}
}
